package com.big.model.model.merchandise.comment;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


/**
 * 商品回复
 */
@Data
@ApiModel(description = "回复")
@TableName("merchandise_reply")
public class MerchandiseReply {


    @ApiModelProperty(value = "编号")
    @TableField("id")
    private Long Id;

    @ApiModelProperty(value = "回复编号")
    @TableField("r_id")
    private Long rId;


    @ApiModelProperty(value = "回复评论的父编号")
    @TableField("c_id")
    private Long cId;

    @ApiModelProperty(value = "回复的商品编号")
    @TableField("m_id")
    private Long mId;

    @ApiModelProperty(value = "回复的用户编号")
    @TableField("p_id")
    private Long pId;

    @ApiModelProperty(value = "评论内容")
    @TableField("content")
    private String content;


    @ApiModelProperty(value = "链接内容")
    @TableField("link_content")
    private String linkContent;


    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private Date createTime;


    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();



}
